package com.xinshujia.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.google.gson.annotations.JsonAdapter;
import com.xinshujia.adapter.LocalDateTimeAdapter;

import java.time.LocalDateTime;
import java.util.function.DoubleUnaryOperator;

/**
 * *************************************
 * *   @author: 野狼上校               **
 * *   @since: 2024-07-19 19:51       **
 * *   @version: 1.0                  **
 * *************************************
 * <p>
 * 阈值实体类
 */
@TableName("blade_threshold")
public class ThresholdEntity extends BaseEntity {
    // 设备Id
    private String deviceGuid;
    // 用户名
    private String username;
    // 正常值机值
    private Double stopMax;
    // 正常空转值
    private Double freeMax;
    // 正常工作值
    private Double workMax;
    // X轴预警值
    private Double xWarn;
    // Y轴预警值
    private Double yWarn;
    // Z轴预警值
    private Double zWarn;
    // X轴报警值
    private Double xAlarm;
    // Y轴报警值
    private Double yAlarm;
    // Z轴报警值
    private Double zAlarm;
    // 阈值百分比
    private Integer percentage;
    // 保底阈值
    private Double guarantee;

    public String getDeviceGuid() {
        return deviceGuid;
    }

    public void setDeviceGuid(String deviceGuid) {
        this.deviceGuid = deviceGuid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Double getStopMax() {
        return stopMax;
    }

    public void setStopMax(Double stopMax) {
        this.stopMax = stopMax;
    }

    public Double getFreeMax() {
        return freeMax;
    }

    public void setFreeMax(Double freeMax) {
        this.freeMax = freeMax;
    }

    public Double getWorkMax() {
        return workMax;
    }

    public void setWorkMax(Double workMax) {
        this.workMax = workMax;
    }

    public Double getxWarn() {
        return xWarn;
    }

    public void setxWarn(Double xWarn) {
        this.xWarn = xWarn;
    }

    public Double getyWarn() {
        return yWarn;
    }

    public void setyWarn(Double yWarn) {
        this.yWarn = yWarn;
    }

    public Double getzWarn() {
        return zWarn;
    }

    public void setzWarn(Double zWarn) {
        this.zWarn = zWarn;
    }

    public Double getxAlarm() {
        return xAlarm;
    }

    public void setxAlarm(Double xAlarm) {
        this.xAlarm = xAlarm;
    }

    public Double getyAlarm() {
        return yAlarm;
    }

    public void setyAlarm(Double yAlarm) {
        this.yAlarm = yAlarm;
    }

    public Double getzAlarm() {
        return zAlarm;
    }

    public void setzAlarm(Double zAlarm) {
        this.zAlarm = zAlarm;
    }

    public Integer getPercentage() {
        return percentage;
    }

    public void setPercentage(Integer percentage) {
        this.percentage = percentage;
    }

    public Double getGuarantee() {
        return guarantee;
    }

    public void setGuarantee(Double guarantee) {
        this.guarantee = guarantee;
    }
}